/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_price_param.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PRICE_PARAM
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_price_param.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h" 

CTable_PPM_PRICE_PARAM::CTable_PPM_PRICE_PARAM( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PRICE_PARAM" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  PRICE_ID.setField( "PRICE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICE_ID );
  PARAM_ID.setField( "PARAM_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PARAM_ID );
  TYPE.setField( "TYPE", DATA_CHAR, 6, 0 );
  makeTableItem( TYPE );
  STATUS_CD.setField( "STATUS_CD", DATA_CHAR, 3, 0 );
  makeTableItem( STATUS_CD );
  NAME.setField( "NAME", DATA_CHAR, 250, 0 );
  makeTableItem( NAME );
  PARAM_DESC.setField( "PARAM_DESC", DATA_CHAR, 2048, 0 );
  makeTableItem( PARAM_DESC );
  VALUE1.setField( "VALUE1", DATA_CHAR, 250, 0 );
  makeTableItem( VALUE1 );
  VALUE2.setField( "VALUE2", DATA_CHAR, 250, 0 );
  makeTableItem( VALUE2 );
}


CTable_PPM_PRICE_PARAM::CTable_PPM_PRICE_PARAM( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PRICE_PARAM" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  PRICE_ID.setField( "PRICE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICE_ID );
  PARAM_ID.setField( "PARAM_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PARAM_ID );
  TYPE.setField( "TYPE", DATA_CHAR, 6, 0 );
  makeTableItem( TYPE );
  STATUS_CD.setField( "STATUS_CD", DATA_CHAR, 3, 0 );
  makeTableItem( STATUS_CD );
  NAME.setField( "NAME", DATA_CHAR, 250, 0 );
  makeTableItem( NAME );
  PARAM_DESC.setField( "PARAM_DESC", DATA_CHAR, 2048, 0 );
  makeTableItem( PARAM_DESC );
  VALUE1.setField( "VALUE1", DATA_CHAR, 250, 0 );
  makeTableItem( VALUE1 );
  VALUE2.setField( "VALUE2", DATA_CHAR, 250, 0 );
  makeTableItem( VALUE2 );
}

CTable_PPM_PRICE_PARAM::~CTable_PPM_PRICE_PARAM( )
{
    close();
}

